﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Mvc;
//using LMS.Filters;
using System.Configuration;
using System.Net;

namespace LMS.Controllers
{
    //[ErrorFilterAttribute]
    //[ActivityLogAttribiute]
    //[AuthenticateUserAttribute]
    public class ChildMenuLayoutController : Controller
    {
        [ChildActionOnly]
        public ActionResult ChildMenuLayout(string HdnChannel, string HdnChannel_Name)
        {
            try
            {
                string USER_TYPE = "1";//((DataTable)Session["UserDetails"]).Rows[0]["USER_TYPE_ID"].ToString();

                DataAccessLayer.Menu_DAL objMenu_DAL = new DataAccessLayer.Menu_DAL(); //Creating object of DBdata
                ArbabTravelsERP.Models.MENU objMenu = new ArbabTravelsERP.Models.MENU();
                DataTable dtUserType = new DataTable();
                objMenu.MenuDT = objMenu_DAL.LayoutMenu(USER_TYPE);
               
                return PartialView(objMenu);
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
